const initState = {
    vMap: []
}
export default function (state=initState,action) {
    // console.log(action.vMap)
    switch(action.type){
        case 'setVMap':
            return {
                vMap: action.vMap
            }
            case 'clearBlock':
                state.vMap[action.row][action.col] = 0
            return {
                vMap: [...state.vMap]
            }
            default:
            return state
    }
}